#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
int main()
{
	int arr[] = { 1,2,3,4,5 };
	int* p = arr;
	char* pf = "hello";

	double n = 0;
	int m = 0;
	while (scanf("%lf %d", &n, &m) != EOF)
	{
		double sum = n;
		for (int i = 1; i < m; i++)
		{
			n = sqrt(n);
			sum += n;
		}
		printf("%.2lf\n", sum);
	}
	return 0;
}